<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td valign="top">
			<table class="adminlist">
				<tr>
					<td>
						<div id="cpanel">
						<?php
						global $option;

						$arrKey 	= array('EVENTS','EVENT TYPES','ASSETS','ASSET GROUPS','ROLES','USERS','SETTINGS');
						$arrName	= array('events','eventtypes','assets','assetgroups','roles','users','settings');
						//print grid view layout
						for ($i=0;$i<count($arrName);$i++){
							$link = 'index.php?option='.$option.'&amp;&controller='.$arrName[$i];
							JBSViewJBS::quickiconButton( $link, $arrName[$i].'.gif', JText::_ ( $arrKey[$i] ) );
						}

//						$link = 'index.php?option='.$option.'&amp;&controller=events';
//						JBSViewJBS::quickiconButton( $link, 'bookmark.gif', JText::_ ( 'EVENTS' ) );
//
//						$link = 'index.php?option='.$option.'&amp;controller=eventtypes';
//						JBSViewJBS::quickiconButton( $link, 'eventtypes.gif', JText :: _('EVENT TYPES') );
//
//						$link = 'index.php?option='.$option.'&amp;controller=assets';
//						JBSViewJBS::quickiconButton( $link, 'assets.gif', JText::_( 'ASSETS' ) );
//
//						$link = 'index.php?option='.$option.'&amp;controller=assetgroups';
//						JBSViewJBS::quickiconButton( $link, 'assetgroups.gif', JText :: _('ASSET GROUP') );
//
//						$link = 'index.php?option='.$option.'&amp;controller=roles';
//						JBSViewJBS::quickiconButton( $link, 'roles.gif', JText :: _('ROLES') );
//
//						$link = 'index.php?option='.$option.'&amp;controller=users';
//						JBSViewJBS::quickiconButton( $link, 'users.gif', JText :: _('USERS') );
//
//						$link = 'index.php?option='.$option.'&amp;controller=settings';
//						JBSViewJBS::quickiconButton( $link, 'settings.gif', JText :: _('SETTINGS') );

						?>
						</div>
					</td>
				</tr>
			</table>
			</td>
			<td valign="top" width="320px" style="padding: 7px 0 0 5px">

			<?php
			$title = JText::_( 'EVENT STATS' );
			echo $this->pane->startPane( 'stat-pane' );
			echo $this->pane->startPanel( $title, 'events' );
				?>
				<table class="adminlist">
					<tr>
						<td>
							<?php echo JText::_( 'EVENTS PUBLISHED' ).': '; ?>
						</td>
						<td>
							<b><?php echo $this->events[0]; ?></b>
						</td>
					</tr>
					<tr>
						<td>
							<?php echo JText::_( 'EVENTS UNPUBLISHED' ).': '; ?>
						</td>
						<td>
							<b><?php echo $this->events[1]; ?></b>
						</td>
					</tr>
					<tr>
						<td>
							<?php echo JText::_( 'EVENTS ARCHIVED' ).': '; ?>
						</td>
						<td>
							<b><?php echo $this->events[2]; ?></b>
						</td>
					</tr>
					<tr>
						<td>
							<?php echo JText::_( 'EVENTS TOTAL' ).': '; ?>
						</td>
						<td>
							<b><?php echo $this->events[3]; ?></b>
						</td>
					</tr>
				</table>
				<?php

				$title = JText::_( 'VENUE STATS' );
				echo $this->pane->endPanel();
				echo $this->pane->startPanel( $title, 'venues' );

				?>
				<table class="adminlist">
					<tr>
						<td>
							<?php echo JText::_( 'VENUES PUBLISHED' ).': '; ?>
						</td>
						<td>
							<b><?php echo $this->venue[0]; ?></b>
						</td>
					</tr>
					<tr>
						<td>
							<?php echo JText::_( 'VENUES UNPUBLISHED' ).': '; ?>
						</td>
						<td>
							<b><?php echo $this->venue[1]; ?></b>
						</td>
					</tr>
					<tr>
						<td>
							<?php echo JText::_( 'VENUES TOTAL' ).': '; ?>
						</td>
						<td>
							<b><?php echo $this->venue[2]; ?></b>
						</td>
					</tr>
				</table>
				<?php

				$title = JText::_( 'CATEGORY STATS' );
				echo $this->pane->endPanel();
				echo $this->pane->startPanel( $title, 'categories' );

				?>
				<table class="adminlist">
					<tr>
						<td>
							<?php echo JText::_( 'CATEGORIES PUBLISHED' ).': '; ?>
						</td>
						<td>
							<b><?php echo $this->category[0]; ?></b>
						</td>
					</tr>
					<tr>
						<td>
							<?php echo JText::_( 'CATEGORIES UNPUBLISHED' ).': '; ?>
						</td>
						<td>
							<b><?php echo $this->category[1]; ?></b>
						</td>
					</tr>
					<tr>
						<td>
							<?php echo JText::_( 'CATEGORIES TOTAL' ).': '; ?>
						</td>
						<td>
							<b><?php echo $this->category[2]; ?></b>
						</td>
					</tr>
				</table>
				<?php
				echo $this->pane->endPanel();
				echo $this->pane->endPane();
				?>
			</td>
		</tr>
</table>
